From: Keir Fraser Date: Mon, 21 Jul 2008 13:03:26 +0000 (+0100) Subject: tools: cpuid inputs must be 32 character long if hexadecimal value is X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14171^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=518aee278066f4c8677b35332606caea1b1cbd57;p=xen.git tools: cpuid inputs must be 32 character long if hexadecimal value is not used. Signed-off-by: Jean Guyader --- diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 30d2ce18bd..3652d8c775 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -956,6 +956,10 @@ def preprocess_cpuid(vals, attr_name): if reg_match == None: err("cpuid's syntax is (eax|ebx|ecx|edx)=value") res = reg_match.groupdict() + if (res['val'][:2] != '0x' and len(res['val']) != 32): + err("cpuid: We should specify all the bits " \ + "of the register %s for input %s\n" + % (res['reg'], input) ) cpuid[input][res['reg']] = res['val'] # new register setattr(vals, attr_name, cpuid)